package com.project.service.impl;

import com.project.bean.ManBean;
import com.project.mapper.IManMapper;
import com.project.service.IManService;

public class ManServiceImpl extends BaseService implements IManService {
    @Override
    public ManBean findByIdIncludeCar(int id) {

        IManMapper mapper = session.getMapper(IManMapper.class);
        ManBean man = mapper.findByIdIncludeCar(id);
        this.commitAndClose();
        return man;
    }
    public static void main(String[] args){
        IManService service = new ManServiceImpl();
        System.out.println(service.findByIdIncludeCar(1));
    }
}
